<?php

class EvaluateController extends \Base\AbstractController {

    /**
     * @desc 列表页
    */
    public function listAction() {
        $request = $this->getRequest();
        $orderId = $request->get('orderId');
        $start = $request->get('start');
        $where = [];

        if(!empty($orderId)) {
            $where['order_id'] = $orderId;
        }

        if(!empty($start)) {
            $where['star_num'] = $start;
        }

        $page = new \Lib\Paginator('evaluate');
        $page->where($where);
        $this->assign('page', $page->getPage());
        $this->assign('perPage', $page->getPerpage());
        $this->assign('count', $page->count());
        $this->assign('lists',$page->lists());

    }


}